//
//  ViewControllerC.m
//  2.25
//
//  Created by student on 16/2/25.
//  Copyright © 2016年 NIIT. All rights reserved.
//

#import "ViewControllerC.h"

@interface ViewControllerC ()
@property (weak, nonatomic) IBOutlet UITextField *username;
@property (weak, nonatomic) IBOutlet UITextField *password;
@property (weak, nonatomic) IBOutlet UITextField *mail;

@end

@implementation ViewControllerC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)back:(id)sender
{
    [self.view endEditing:YES];
}
- (IBAction)yes:(id)sender
{
    NSString *username=self.username.text;
    NSString *pasword=self.password.text;
    NSString *mail=self.mail.text;
    [self.delegate tansusername:username andpassword:pasword andmail:mail];
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)no:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
